﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UFIDA.U9.Cust.XH.PlugBE.Tool
{
    #region OA人员相关类
    public class OAUserDto
    {
        /// <summary>
        /// 
        /// </summary>
        public Params @params { get; set; }

    }
    public class Params
    {
        /// <summary>
        /// 人员编码
        /// </summary>
        public string workcode { get; set; }
        /// <summary>
        /// 指定获取OA字段的列表
        /// </summary>
        public string base_custom_data { get; set; }
    }

    /// <summary>
    /// 返回的用户列表对象
    /// </summary>
    public class UserData
    {

        /// <summary>
        ///  1 成功，其他失败
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public EmpData data { get; set; }
    }
    /// <summary>
    /// 人员信息
    /// </summary>
    public class EmpData
    {
        /// <summary>
        /// 
        /// </summary>
        public int totalSize { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<DataListItem> dataList { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int pageSize { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int page { get; set; }
    }
    public class DataListItem
    {
        /// <summary>
        /// 用户id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string subcompanyid1 { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string subcompanyname { get; set; }
        /// <summary>
        /// 部门id
        /// </summary>
        public string departmentid { get; set; }
    }
    #endregion


    #region 查询部门相关类
    public class OADepDto
    {
        /// <summary>
        /// 
        /// </summary>
        public DepParams @params { get; set; }

    }
    public class DepParams
    {
        /// <summary>
        /// 人员编码
        /// </summary>
        public string departmentcode { get; set; }
        /// <summary>
        /// 指定获取OA字段的列表
        /// </summary>
        public string base_custom_data { get; set; }
    }

    #endregion
    #region 查询组织相关类
    public class OAOrgDto
    {
        /// <summary>
        /// 
        /// </summary>
        public OrgParams @params { get; set; }

    }
    public class OrgParams
    {
        /// <summary>
        /// 组织编码
        /// </summary>
        public string subcompanycode { get; set; }
    }

    #endregion


    #region 查询OA接口返回结果
    public class OAFindRes
    {
        public string result;

    }
    public class OAFindResResult
    {
        public OAFindResResultMain mainTable = new OAFindResResultMain();
    }
    public class OAFindResResultMain
    {
        public string id;
    }
    #endregion
    /// <summary>
    /// 档案同接口参数外层
    /// </summary>
    public class OAModel
    {
        public dynamic data { get; set; }

        public dynamic header { get; set; }
    }








}
